package com.yipei.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yipei.common.annotation.Excel;
import com.yipei.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 成交订单对象 ml_trade_deal_order
 *
 * @author yipei
 * @date 2024-12-21
 */
@Data
@ApiModel(value = "成交订单", description = "成交订单")
@TableName("ml_trade_deal_order")
public class MlTradeDealOrder extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "表ID", position = 1)
    private String id;

    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注", position = 2)
    private String remarks;

    /**
     * 交易账号
     */
    @Excel(name = "交易账号")
    @ApiModelProperty(value = "交易账号", position = 3)
    private String tdAcc;

    /**
     * 委托单号
     */
    @Excel(name = "委托单号")
    @ApiModelProperty(value = "委托单号", position = 4)
    private String wtDh;

    /**
     * 成交单号
     */
    @Excel(name = "成交单号")
    @ApiModelProperty(value = "成交单号", position = 5)
    private String cjDh;

    /**
     * 标的代码
     */
    @Excel(name = "标的代码")
    @ApiModelProperty(value = "标的代码", position = 6)
    private String symbol;

    /**
     * 成交方向
     */
    @Excel(name = "成交方向")
    @ApiModelProperty(value = "成交方向", position = 7)
    private BigDecimal cjFx;

    /**
     * 成交价格
     */
    @Excel(name = "成交价格")
    @ApiModelProperty(value = "成交价格", position = 8)
    private BigDecimal cjJg;

    /**
     * 成交数量
     */
    @Excel(name = "成交数量")
    @ApiModelProperty(value = "成交数量", position = 9)
    private BigDecimal cjSl;

    /**
     * 成交手续费
     */
    @Excel(name = "成交手续费")
    @ApiModelProperty(value = "成交手续费", position = 10)
    private BigDecimal cjSxf;

    /**
     * 成交利润
     */
    @Excel(name = "成交利润")
    @ApiModelProperty(value = "成交利润", position = 11)
    private BigDecimal cjLr;

    /**
     * 成交时间
     */
    @Excel(name = "成交时间")
    @ApiModelProperty(value = "数据库存储成交时间", position = 12)
    private Long cjSj;

    @Excel(name = "股票名称")
    @ApiModelProperty(value = "股票名称", position = 15)
    private String secName;

    @TableField(exist = false)
    @ApiModelProperty(value = "前端显示成交时间", position = 12)
    private String viewSj;
}
